<?php include 'header.php'; ?>
		<div class="content content-interna">
			<h2 class="titulo-interna">Brindes</h2>
			<ul class="brindes">
				<?php $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; 
				query_posts('post_type=brinde&posts_per_page=8&paged=' . $paged); ?>
				<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
					<li class="parceiro">
						<div class="wrapper-img"><?php the_post_thumbnail( 'parceiro' ); ?></div>
						<div class="texto">
							<h3><?php the_title(); ?></h3>
							<?php the_content(); ?>
							<?php $tipo = get('outros_tipo'); ?>
							<p>Tipo de brinde: <?php echo $tipo; ?></p> 
							<?php if($tipo=='Desconto'){ $desc = get('outros_desconto'); ?>
								<p><?php echo $desc; ?>% de desconto</p> 
							<?php } ?>
						</div>
						<span class="clear"></span>
					</li>
				<?php endwhile; endif; ?>
				<span class="clear"></span>
			</ul>
			<?php wp_pagenavi(); ?>
			<span class="clear"></span>
		</div><!-- content -->
<?php include 'footer.php'; ?>